﻿using BDShop.DAL;
using BDShop.Entities;
using System;
using System.Collections.Generic;
using IsolationLevel = System.Transactions.IsolationLevel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BDShop.Business
{
    public class ConstantService
    {
        public static List<Constant> GetListConstantCacheModel()
        {
            List<Constant> lstConstant = new List<Constant>();
            using (var context = new BDShopEntities(IsolationLevel.ReadUncommitted))
            {
                lstConstant = context.Constants.ToList();
            }

            return lstConstant;
        }
    }
}
